package com.crack.nga2.activity.userCenter;

import android.os.Bundle;
import android.support.annotation.IdRes;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import android.view.View;

/**
 * 另一个基类 测试中。。。
 * Created by lenovo on 2016/1/26.
 */
public class $BaseActivity extends AppCompatActivity {
    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
    }
    protected void $setViews(){

    }

    protected void $setData(){

    }

    @SuppressWarnings("unchecked")
    final protected <T extends View> T $(@IdRes int resId) {
        return (T) findViewById(resId);
    }
}
